﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.RbacData.Domain.Traceabilitys
{
    /// <summary>
    /// 溯源产品表
    /// </summary>

    [Table("ProductsInfo")]
    public class ProductModel : BaseEetity
    {

        /// <summary>
        /// 商品编号Id
        /// </summary>
        public int GoodsId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>

        [MaxLength(30)]
        public string ProductionBatch { get; set; } = null!;

        /// <summary>
        /// 保质期（天）
        /// </summary>
        public int ShelfLifeDay { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>

        [MaxLength(30)]
        public string ProductionLicenseNumber { get; set; } = null!;

        /// <summary>
        /// 生产企业
        /// </summary>
        [MaxLength(30)]
        public string Manufacturer { get; set; } = null!;

        /// <summary>
        /// 封面图
        /// </summary>
        [MaxLength(500)]
        public string CoverImage { get; set; } = null!;


        /// <summary>
        /// 信息完善度
        /// </summary>
        public string Completeness { get; set; } = null!;

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime { get; set; }
        /// <summary>
        /// 导航属性
        /// </summary>
        public GoodsModel Goods { get; set; } = null!;
    }
}
